package com.cn.demo4.service.impl;

import com.cn.demo4.dao.ConsultingDao;
import com.cn.demo4.dao.impl.ConsultingDaoImpl;
import com.cn.demo4.model.ConsultingModel;
import com.cn.demo4.service.IConsultingService;

import java.util.List;

public class ConsultingServiceImpl implements IConsultingService {
    @Override
    public List<ConsultingModel> findAll() {
        ConsultingDao consultingDao = new ConsultingDaoImpl();
        return consultingDao.findAll();
    }

    @Override
    public List<ConsultingModel> getConsultingModelListForHome() {
        ConsultingDao consultingDao = new ConsultingDaoImpl();
        return consultingDao.getConsultingModelListForHome();
    }
}
